﻿using wx.web.Models;

namespace wx.web.Interface
{
    public interface IWeChatService
    {
        string GenerateAuthorizationUrl(string redirectUrl, string scope = "snsapi_base", string state = "");
        Task<WeChatApiResponse> GetAccessTokenAsync(string code);
        Task<WeChatUserInfo> GetUserInfoAsync(string accessToken, string openId);
        bool ValidateSignature(string signature, string timestamp, string nonce);
    }
}
